<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta name="layout" content="main">
    <title>Upgrade Requests</title>
  </head>
  <body>
    <h1>Upgrade Requests</h1>
    <table>
      <tr>
        <th>Username</th>
        <th>Role</th>
        <th>Upgrade</th>
      </tr>
      <g:each var="request" in="${requestList}">
        <tr>
          <td>${request.user.username}</td>
          <td>${request.role.authority}</td>
          <td><g:link action="upgradeUser" params="[username: request.user.username, role: request.role.authority]">Upgrade</g:link></td>
        </tr>
      </g:each>
    </table>
  </body>
</html>
